import BusinessIndex from "@/components/business/index";
import Login from '@/components/business/login'
import Profile from '@/components/business/profile'
import Email from '@/components/business/email'
import Coupon from '@/components/business/coupon'
import { Outlet } from "react-router-dom";

const list=[
    {
        path:"index",
        component:BusinessIndex,
        auth:true,
    },
    {
        path: 'login',
        component: Login,
    },
    {
        path: 'profile',
        component: Profile,
        auth: true,
    },
    {
        path: 'email',
        component: Email,
        auth: true,
    },
    {
        path: 'coupon',
        component: Coupon,
        auth: true,
    },
]

const layout=()=>{
    return(<><Outlet/></>)
}

const RouterList = [
    {
      path: '/business',
      component: layout,
      children: list,
    }
  ]
  
  export default RouterList